<!DOCTYPE html >
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="base :: header (title='完工检验')" />
<link th:href="@{plugins/common/css/basemessage.css}" rel="stylesheet" />
<link th:href="@{css/jobBooking/qualityChecking.css}" rel="stylesheet" />
<body class="" style="">
	<div class="main-content blank_bg">
		<div>
			<div>
				<div class="row" style="margin: 10px;">
					<div class="page-heading">
						<div class="" >							
							<div style="margin-bottom: 5px;">
								<div style="float:left;margin-right: 10px;" id="workpalce">
									<span class="spanCss">工作中心：</span>
									<select name="fWorkShopId" id="fWorkShopId" class="selectpicker clean-c " data-live-search="true" data-width="140px">
									</select>
								</div>
								<div style="float:left">
									<span class="spanCss">任务单号：</span> 
									<input type="text" id="fBillNo" name="fBillNo" class="form-control clean-c" style="width: 150px; margin-right: 10px;" /> 
									<span class="spanCss">派工单号：</span> 
									<input type="text" id="fCode" name="fCode" class="form-control clean-c" style="width: 150px; margin-right: 10px;" /> 
									<span class="spanCss">操作工卡号：</span> 
									<input type="text" id="fWorker" name="fWorker" class="form-control clean-c" style="width: 100px; margin-right: 10px;" /> 
									<span class="spanCss">操作工姓名：</span> 
									<input type="text" id="wname" name="wname" class="form-control clean-c nameReadonly" style="width: 100px; margin-right: 10px;" placeholder="自动获取" readonly="readonly"//>															  
								</div>
								<div style="float:left">
									<button id="query" class="btn btn-default " type="button" style="margin-left: 10px;">查询</button>
									<button type="button" class="btn btn-default " id="resetting">重置</button>
									<button type="button" class="btn btn-default" id="more">更多</button>
								</div>
								<div style="clear:both"></div>								
								<div class="" id="extend" style="margin-top: 5px;display: none;">
							       <div style="clear:both;">							    
								      <span class="spanCss">质检员卡号：</span> 
									  <input type="text"id="fChecker" name="fChecker" class="form-control clean-c"style="width: 124px; margin-right: 10px;" />						    	
								   </div>						    	
						       </div>
							</div>
							<div style="">
								<table id="checkTable" class="table dataTable table-hover tableList" style="">
								</table>
							</div>
			
							<!-- 质检模态框 start -->
							<div class="modal fade " id="checkingModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="background-color: rgba(0, 0, 0, 0.5)" data-backdrop="static">
								<div class="modal-dialog" style="width: 1100px; height: 220px;">
									<div class="modal-content" style="width: auto;">
										<div class="modal-header">
											<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
											<h4 class="modal-title" id="titleModal">质检</h4>
										</div>
										<div class="modal-body" style="height: auto; padding: 10px;">
											<form id="checkingForm" class="form-group">
												<div style="display: inline-block;overflow: hidden;margin-right: 15px;" id="">
													<table border="0" cellspacing="0" cellpadding="0" class="table-condensed normal-table table-content" id="">
														<tr>
															<td class="title"><span class="sub">派工单号：</span></td>
															<td colspan="">
																<input type="text" id="dispatchingfCode" name="fCode" class="clean_c form-control" readonly="readonly">
																<input type="hidden" id="dispatchingfStartWorkId" name="fStartWorkId" class="clean_c form-control" readonly="readonly">
															</td>
															<td class="title"><span class="sub">产品代码：</span></td>
															<td colspan=""><input type="text" id="dispatchingfNumber" name="fNumber" class="clean_c form-control" readonly="readonly"></td>
															<td class="title"><span class="sub">规格型号：</span></td>
															<td colspan="3">
																<input type="text" id="dispatchingfModel" name="fModel" class="clean_c form-control" readonly="readonly">
															</td>
														</tr>
														<tr>
															<td class="title"><span class="sub">产品名称：</span></td>
															<td colspan=""><input type="text" id="dispatchingfName" name="fName" class="clean_c form-control" readonly="readonly"></td>
															<td class="title"><span class="sub">工序号：</span></td>
															<td colspan=""><input type="text" id="dispatchingfOperSN" name="fOperSN" class="clean_c form-control" readonly="readonly"></td>
															<td class="title"><span class="sub">工序名称：</span></td>
															<td colspan=""><input type="text" id="dispatchingfOper" name="fOper" class="clean_c form-control" readonly="readonly"></td>
															<td class="title"><span class="sub">待检数：</span></td>
															<td colspan=""><input type="text" id="dispatchingfPassQty" name="fQty" class="clean_c form-control" readonly="readonly"></td>
														</tr>
														<tr>
															<td class="title"><span class="sub">自检工废：</span></td>
															<td colspan=""><input type="text" id="yyy" class="clean_c form-control" readonly="readonly"></td>
															<td class="title"><span class="sub">自检料废：</span></td>
															<td colspan=""><input type="text" id="dispatchingfForitemQty" name="fForitemQty" class="clean_c form-control" readonly="readonly"></td>
															<td class="title"><span class="sub">自检次品：</span></td>
															<td colspan=""><input type="text" id="dispatchingfOthQty" name="fOthQty" class="clean_c form-control" readonly="readonly"></td>
														    <td class="title"><span class="sub">质检料废百分比：</span></td>
															<td colspan=""><input type="text" id="fForitemPercent" name="fForitemPercent" class="clean_c form-control" value = "50.0"></td>
														</tr>
													</table>
													<div style="display:none;">
													<input type="text" id="fEndWorkId" name="fEndWorkId" class="clean_c form-control" readonly="readonly">
													<input type="text" id="fCardId" name="fCardId" class="clean_c form-control" readonly="readonly">
													<input type="text" id="dispatchingfBillNo" name="fBillNo" class="clean_c form-control" readonly="readonly">
													<!-- <input type="text" id="dispatchingfModel" name="fModel" class="clean_c form-control" readonly="readonly">		 -->											
													</div>
													<div class="sub" style="width:98%;">
														<button id="addCheck" class="btn btn-default" type="button" style="margin-bottom: 5px;">新增检查项</button>
														<table id="checkListTable" class="table dataTable table-hover checkListTable">															
														</table>
													</div>
													<table border="0" cellspacing="0" cellpadding="0" class="table-condensed normal-table table-content" id="" style="margin-top: 5px;">
														<tr style="display:none;">
															<td class="title"><span class="sub"><span class="requiredCss">*</span><span id="fQualityChk">检验类型：</span></span></td>
															<td colspan="">
																<select name="fType" id="fType" class="selectpicker dropup clean_c" data-live-search="true" data-width="152px" data-dropup-auto="false" data-style="btn-success">
																	<option value="3" selected="selected">完工检</option>																	
																</select>
															</td>
															<td class="title"><span class="sub"><span class="requiredCss">*</span><span >检验结果：</span></span></td>
															<td colspan="">
																<select name="fStatus" id="fStatus" class="selectpicker dropup clean_c " data-live-search="true" data-width="152px" data-dropup-auto="false" data-style="btn-success">
																	<option value="0" selected="selected">扣除不良品通过</option>																	
																</select>
															</td>
															<td class="title"></td>
															<td style="width: 157px;"></td>
															<td class="title"></td>
															<td style="width: 157px;"></td>
														</tr>
														<tr>
															<td class="title" colspan="6"><span style="" class="requiredCss sub">注：带*为必填字段。</span></td>
														</tr>
													</table>
													<div style="width: 100%;position:relative;">
														<div style="text-align: center;margin-top: 15px;margin-bottom: 20px;">
															<button type="button" class="btn btn-default" id="confirm" style="margin-right: 20px;">确定</button>
															<button type="button" class="btn btn-default" id="cancel" data-dismiss="modal">取消</button>
														</div>
													</div>
												</div>
											</form>
										</div>
									</div>
								</div>
							</div>	
							<!-- 质检模态框 end -->
							
							<!-- 外协质检模态框 start -->
							<div class="modal fade " id="checkModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="background-color: rgba(0, 0, 0, 0.5)" data-backdrop="static">
								<div class="modal-dialog" style="width: 1100px; height: 220px;">
									<div class="modal-content" style="width: auto;">
										<div class="modal-header">
											<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
											<h4 class="modal-title" id="titleModal">外协质检</h4>
										</div>
										<div class="modal-body" style="height: auto; padding: 10px;">
											<form id="checkForm" class="form-group">
												<div style="display: inline-block;overflow: hidden;margin-right: 15px;" id="">
													<table border="0" cellspacing="0" cellpadding="0" class="table-condensed normal-table table-content" id="">
														<tr>
															<td class="title"><span class="sub">接收单号：</span></td>
															<td colspan="">
																<input type="text" id="fBillNo" name="fBillNo" class="clean_c form-control" readonly="readonly">
																<input type="hidden" id="fEntryID" name="fEntryID" class="clean_c form-control" readonly="readonly">
																<input type="hidden" id="fInterID" name="fInterID" class="clean_c form-control" readonly="readonly">
															</td>
															<td class="title"><span class="sub">产品代码：</span></td>
															<td colspan=""><input type="text" id="dispatchingfNumber1" name="fNumber" class="clean_c form-control" readonly="readonly"></td>
															<td class="title"><span class="sub">规格型号：</span></td>
															<td colspan="3">
																<input type="text" id="dispatchingfModel1" name="fModel" class="clean_c form-control" readonly="readonly">
															</td>
														</tr>
														<tr>
															<td class="title"><span class="sub">产品名称：</span></td>
															<td colspan=""><input type="text" id="dispatchingfName1" name="fName" class="clean_c form-control" readonly="readonly"></td>
															<td class="title"><span class="sub">工序号：</span></td>
															<td colspan=""><input type="text" id="dispatchingfOperSN11" name="fOperSN" class="clean_c form-control" readonly="readonly"></td>
															<td class="title"><span class="sub">工序名称：</span></td>
															<td colspan=""><input type="text" id="fOperName1" name="fOperName" class="clean_c form-control" readonly="readonly"></td>
															<td class="title"><span class="sub">接收数：</span></td>
															<td colspan=""><input type="text" id="fReceiveQty1" name="fReceiveQty" class="clean_c form-control" readonly="readonly"></td>
														</tr>
														<tr>
															<td class="title"><span class="sub">供应商：</span></td>
															<td colspan="3"><input type="text" id="fSupplierName" name="fSupplierName" class="clean_c form-control" readonly="readonly"></td>
															<td class="title"><span class="sub"><span class="requiredCss">*</span>接收日期：</span></td>
															<td colspan=""><input type="text" id="fWorkDate" name="fWorkDate" class="clean_c form-control bj_color" readonly="readonly"></td>
														</tr>
													</table>
													<div class="sub" style="width:98%;">
														<button id="addChecks" class="btn btn-default" type="button" style="margin-bottom: 5px;">新增检查项</button>
														<table id="checklistsTable" class="table dataTable table-hover checkListTable">
														</table>
													</div>
													<table border="0" cellspacing="0" cellpadding="0" class="table-condensed normal-table table-content" id="" style="margin-top: 5px;">
														<tr>
															<td class="title"><span class="sub"><span class="requiredCss">*</span><span id="fQualityChk">检验方式：</span></span></td>
															<td colspan="">
																<select name="fQualityChkID" id="fQualityChkID" class="selectpicker dropup clean_c" data-live-search="true" data-width="152px" data-dropup-auto="false" data-style="btn-success">
																	  <option value="351" selected="selected">全检</option>
		                                                              <!-- <option value="352">免检</option>
		                                                              <option value="353">抽检</option> -->
																</select>
															</td>
															<td class="title"><span class="sub"><span class="requiredCss">*</span>检验结果：</span></td>
															<td colspan="">
																<select name="fStatus" id="fStatu" class="selectpicker dropup clean_c " data-live-search="true" data-width="152px" data-dropup-auto="false" data-style="btn-success">
																	<option value="1" selected="selected">允收(合格)</option>
		                                                            <!-- <option value="2">特采(让步接收)</option>
		                                                            <option value="3">拒收(不合格)</option> -->
																</select>
															</td>
															<td class="title"></td>
															<td style="width: 157px;"></td>
															<td class="title"></td>
															<td style="width: 157px;"></td>
														</tr>
														<tr>
															<td class="title" colspan="6"><span style="" class="requiredCss sub">注：带*为必填字段。</span></td>
														</tr>
													</table>
													<div style="width: 100%;position:relative;">
														<div style="text-align: center;margin-top: 15px;margin-bottom: 20px;">
															<button type="button" class="btn btn-default" id="confirms" style="margin-right: 20px;">确定</button>
															<button type="button" class="btn btn-default" id="cancel" data-dismiss="modal">取消</button>
														</div>
													</div>
												</div>
											</form>
										</div>
									</div>
								</div>
							</div>	
							<!-- 外协质检模态框 end -->
							
							<!-- 输入质检人员卡号模态框 start -->
							<div class="modal fade " id="inputCardModal" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="background-color: rgba(0, 0, 0, 0.5)" data-backdrop="static">
								<div class="modal-dialog" style="width: 530px; height: 220px;">
									<div class="modal-content" style="width: auto;">
										<div class="modal-header">
											<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
											<h4 class="modal-title" id="titleModal">质检员卡号</h4>
										</div>
										<div class="modal-body" style="height: auto; padding: 10px;">
											<div style="text-align: center;">
												<div>
													<span style="font-size: 20px;">质检员卡号：</span>
													<input type="text" id="fWorkernum" name="fWorkernum" class="clean-c form-control bj_color resetting modalInput" autocomplete="off" />
												</div>
												<div style="margin-top: 10px;">
													<button id="save" class="btn btn-default" type="button" style="margin-right: 20px;">确定</button>
													<button id="back" class="btn btn-default" type="button" data-dismiss="modal" style="">取消</button>
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>	
							<!-- 输入质检人员卡号模态框 end -->
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<span id="type" style="display: none;">0</span>
	<div th:include="base :: bottom" />
	<div th:include="base :: bootstrapTable" />
	<div th:include="base :: bootstrapTable-eidt" />
	<div th:include="base :: others" />
	<script th:src="@{js/jobBooking/qualityChecking.js}"></script>
</body>
</html>